import koaRouter from "koa-router";
import { getnewsData } from "../controller/news";
const newsRouter = new koaRouter({ prefix: "/news" });
newsRouter.post("/xinwen", getnewsData.getXinWenData);
newsRouter.get("/cates", getnewsData.getCateData);
newsRouter.post("/getSearchData", getnewsData.getSearchData);
newsRouter.get("/modeflag", getnewsData.modeflag);
export { newsRouter };
